﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LDLib
{
    public static class Properties
    {
        private static int screenWidth = 1280;
        private static int screenHeight = 720;
        private static float screenRatio = 1280f / 720f;

        /// <summary>
        /// Screen width, in pixels
        /// </summary>
        public static int ScreenWidth
        {
            get { return screenWidth; }
            set
            {
                if(value > 0)
                {
                    screenWidth = value;
                    screenRatio = (float)screenWidth / (float)screenHeight;
                }
            }
        }

        /// <summary>
        /// Screen height, in pixels
        /// </summary>
        public static int ScreenHeight
        {
            get { return screenHeight; }
            set
            {
                if (value > 0)
                {
                    screenHeight = value;
                    screenRatio = (float)screenWidth / (float)screenHeight;
                }
            }
        }

        public static float ScreenRatio { get { return screenRatio; } }
    }
}
